from numpy import array

class instance:
    
    def __init__(self, list, label):
        self.array = array(list) 
        self.label = label
        self.list = list
    
    def __len__(self):
        return len(self.list)